import request from '@/utils/request'

// 查询回采队信息列表
export function listTeam(query) {
  return request({
    url: '/dispatch/miningTeam/list',
    method: 'get',
    params: query
  })
}

// 查询回采队信息详细
export function getTeam(miningTeamId) {
  return request({
    url: '/dispatch/miningTeam/' + miningTeamId,
    method: 'get'
  })
}

// 新增回采队信息
export function addTeam(data) {
  return request({
    url: '/dispatch/miningTeam',
    method: 'post',
    data: data
  })
}

// 修改回采队信息
export function updateTeam(data) {
  return request({
    url: '/dispatch/miningTeam',
    method: 'put',
    data: data
  })
}

// 删除回采队信息
export function delTeam(miningTeamId) {
  return request({
    url: '/dispatch/miningTeam/' + miningTeamId,
    method: 'delete'
  })
}
